/**
 * Class Name: VectorActivity
 * Description: 
 *
 * @author Sultan-PC
 * @version 1.00
 * @date FEB 20th, 2011
 * 
**/

package com.matrix.calculator;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Spinner;

public class Vector extends Activity
{
	/**
	 * Instance Variables
	 */
	private Spinner operations;
	private EditText et1, et2, et3;
	private Button view1, view2, view3, calculate;
	private ArrayAdapter aa;
	
	public void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.vector);
		this.initiate();
	}
	
    public void initiate()
    {
    //	this.aa = ArrayAdapter.createFromResource(
    //          this, R.array.vector_ops, android.R.layout.simple_spinner_item);
    //	this.aa.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
    //	this.operations = (Spinner) this.findViewById(R.id.spinner);
    	
    	/*
    	this.et1 = (EditText) this.findViewById(R.id.edit_matrixA);
    	this.et2 = (EditText) this.findViewById(R.id.edit_matrixB);
    	this.et3 = (EditText) this.findViewById(R.id.edit_vectorB);
    	
    	this.view1 = (Button) this.findViewById(R.id.btn1);
    	this.view2 = (Button) this.findViewById(R.id.btn2);
    	this.view3 = (Button) this.findViewById(R.id.btn3);
    	this.calculate = (Button) this.findViewById(R.id.btn4);
    	
    	*/
    	
    	//this.setAdapters();
    	//this.addListeners();
    }
    
    public void setAdapters()
    {
    	this.operations.setAdapter(aa);
    }
    
    public void addListeners()
    {
       this.view1.setOnClickListener(new OnClickListener(){
    		public void onClick(View v)
    		{
    	    	// Do Something
    		}
    	});
       this.view2.setOnClickListener(new OnClickListener()
       {
    	   public void onClick(View v)
    	   {
    		   // Do Something
    	   }
       });
       this.view3.setOnClickListener(new OnClickListener()
       {
    	   public void onClick(View v)
    	   {
    		   // Do Something
    	   }
       });
       this.calculate.setOnClickListener(new OnClickListener()
       {
    	   public void onClick(View v)
    	   {
    		   
    	   }
       });
       
    }// end AddListeners()
    
}// end Class